<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>修改方法</title>
</head>
<body>


    <!-- 创建一个元素 -->
    <div class="box">
        <div class="name">姓名:tan</div>
        <div class="age">年龄:12</div>
    </div>
    <div>
        <input type="text"  id="input"/>
    </div>
    <style>
        body{
            margin: 0;
            padding: 0;
        }
        .box {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%,-50%);
            text-align: center;
            font-size: 24px;
            border: 1px solid #000;
            background:#87CEFA;
            width: 200px;
            height: 150px;
            border-radius: 5px;
        }
        .box div{
            margin-top: 20px;
        }
    </style>
    <script src="./vue3-fun.js"></script>
</body>
</html>